package com.mxdx.edu.service;

import com.mxdx.edu.model.HwStudentRecord;

import java.util.List;
import java.util.Map;

public interface IHwLibraryService {

    //获取考试标题
    Map<String, Object> findHwTitleByMap(Map<String, Object> param);

    //根据课程id获取考试信息
    Map<String, Object> findHwTitleByCourseId(String courseId);

    List<Map<String,Object>> findHwSubjectByHwId(String hwId);

    List<Map<String,Object>> findHwMainByHwId(String studentId,String courseId,String semesterId,String hwId);

    Map<String,Object> findHwMainTestByMap(String testId);

    List<Map<String,Object>> findHwOptionByTestId(List<String> testIdList);

    List<Map<String,Object>> findHwAnswerByTestId(List<String> testIdList);

    List<Map<String,Object>> findHwExplainByTestId(List<String> testIdList);

    //学生答题列表
    List<HwStudentRecord> findHwStudentRecordByMap(String studentId, String courseId, String hwId);

    int findHwStudentCountByMap(String studentId, String courseId, String hwId,String testId,int correctStatus);

    String findHwStudentTestIdsByMap(String studentId, String courseId, String hwId,String testId,int correctStatus);

    //学生答题保存
    int hwStudentSave(HwStudentRecord hwStudentRecord);

    int hwStudentUpdate(HwStudentRecord hwStudentRecord);

    int hwStudentDelete(String studentId,String courseId,String hwId,String testId);

}
